<header>
  <div class="container">
    <img src="../../img/logo.png" alt="Noodle logo" class="logo">
    <nav>
      <ul>
        <?php
          if(isset($_POST['chapterPanel']) || isset($_SESSION['chapterPanel']))
          {           
            echo  '<li><a href="logic/deleteUpdateQuestion.php">Delete/Update questions</a></li>';              
            echo  '<li><a href="logic/createQuestion.php">Create questions</a></li>'; 
          }
          if(isset($_SESSION['chapterPanel']) || isset($_SESSION['subjectPanel']) || isset($_POST['chapterPanel']) || isset($_POST['subjectPanel']))
          {
            echo  '<li><a href="logic/goBack.php">Back</a></li>'; 
          }
        ?>                     
        <li><a href="../../logout.php">Logout</a></li>     
      </ul>
    </nav>
  </div>
</header>